remove lines of javascript snippets