FH-11 cordova implementation 

Added support for Cordova and Android. Probably works with iOS.