Moved cordova js above the new javascript code