An HTML5 hybrid app for home automation