created stopwatch using javascript