Implemented EventHub logic and added jshinting.