Template-based HTML5 framework for web-based smarthome user interfaces