update javascript snippets (mostly comment snippets)