messages-util.js: Handles the socket.io stuff and provides a simple API for sending and receiving messages (see the doc comment at the top of the file)
messages-page.js: Interacts with the messages page and updates its DOM, using the messages-util API
There are now two files: