updaete html and js snippets