Update timer.js

Progress of my work. Countdown works a little bit right now.