Simulating some functionalities of home automation with a JavaScript application [Work in progress]