Added some js doc snippets.