socket.io.js to layout