extra javascript snippets