update javascript snippets to my preferred snippets