Changed an event

Changed event in the index.js file from deviceready to online