test stopwatch in javascript