Added cordova plugin support