modularised the timer object into seperate js file