Update JS snippets.