Attempting to fix the undefined problem with the sockets objects on the io variable (socket.io)