Kite client in JavaScript