Add a few javascript snippets