Calling onDeviceReady inside Document Ready