HTML5 JS app using phonegap