initial loading of phonegap files