cordova.js must be placed at root