Documented the javascript