Merge pull request #1 from vtsaplin/master

Plugin changed for using with latest version of Cordova