Add javascript snippets