The javascript client for cashier api service