Added sockets. Index now talks to js.