moved: deviceready to script.js