removed old snippets
added new javascript snippets