JS snippets update