working example using the metawear cordova plugin