Added Socket.js and fixed routing.