added console to onDeviceReady