Single page app with socket.io