Added timers to JavaScript