Is onDeviceReady breaking it?