adding phonegap deviceready command