separated socket.io from html render