Updated Phonegap deviceready