add phonegap deviceready events for android/iphone