Changed html and javascript snippets