Fix: window.plugins no longer works on cordova > 3.3, changed do
cordova.plugins