now works with cordova 2.5

Fixed it to work with cordova 2.5