Added a little bit to the JavaScript client