added startup code to call phonegap function
hot code reload will keep phonegap variables accessible
Merge branch 'hotReload' into devel