Updating JS snippets