Adding JavaScript snippets.