Forgot cordova.js in the header (for deviceready to fire)