Refactor out Html5Renderer