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

cordova.plugins. Hey, due to recent changes this change will be needed to use the plugin with cordova > 3.3(I guess)