onDeviceReady Not Firing

another failed attempt at fixing it.