add timer js and fix bug
add timer js