adding phonegap ready