created javascript-snippets