Node.js module to display messages on the screen, and update the state asyncronously