Completed in-code documentation for js code