Updating ripple source code with cordova 2.5+ support