Template-based HTML5 framework for smarthome user interfaces