update snippets js