Updated the index and the server. powering ahead with mongoose and web sockets!