try to add logic from cordova browserid plugin