Improve general JS documentation