Fix for Cordova 3.0