How to create an application for and embed on site