Refactor js snippets.
Add html snippets.