Fixed some of the js issues and started with socket.io