added onDeviceREady call for Chrome