Improve general Javascript documentation