Refactored host to use HTML5