Use the ABS api from javascript.  This is built for phonegap/cordova use, but can be added in a regular web ap.