Fixed plugin not working with cordova 3.2+.