Make a proper Cordova plugin