developing the src/timer.js