JS wrapper for the ripple API