Create timer.js

The initial js for timer.html