Moved js to header and switch cordova.js to phonegap.js