Added initial Phonegap functionality