Add documentation to javascript files.