Add useful javascript snippets