Javascript wrapper around snapbill api