Create timer.js

first commit for timer