Update JavaScript snippets.