socket.io timer working