removed onDeviceReady(); // <== Fixed line!