A JavaScript API for interacting with Ripple in Node.js and the browser