Fix: window.plugins no longer works on cordova > 3.3, changed do
cordova.plugins
Merge pull request #2 from pebra/master

Thank you!