Added basic socket.io code (may still remove it in favour of a much simpler option => just write static HTML to  and serve that as an image with no need for JS at all.