index updated to listen ondeviceready event;
index updated to listen ondeviceready event;