Removed JQuery ready and added Phonegap deviceready and pageinit