Updated to Cordova version 2