Added a simple message hub and updated the JS code to interact with it.