Try cordova instead of phonegap.js