Update js snippets