JavaScript framework for Internet of Things