Create timer.js

First commit for timer