Add JavaScript snippets.