Updates plugin to work with cordova v2.8