Add javascript snippets.