Update index.js

Proxied onDeviceReady call.