Socket.io - Binding the front and back-end together with Node.js and Canvas