Syntax error in sockets.js