1. A computer-implemented method for initializing an application on an electronic device, the method comprising: installing, in an electronic device, a package that contains an uninitialized application that (i) is configured to be embedded in a page conforming with hypertext markup language (HTML) and (ii) requires an HTML compliant variable for initialization of the application; detecting, in the electronic device, an instruction to initialize the application in an environment that is not an HTML compatible browser application; obtaining, in response to the instruction and from a file in the package, an application file name for an application file and at least one initialization value for the required HTML compliant variable; loading the application file identified by the application file name; and providing the at least one initialization value to the application prior to initialization of the application; and wherein the application is initialized in the environment using the at least one initialization value and is executed on the electronic device.