add ; in onDeviceReady