adding Timers code to sockets.js