a simple javascript stopwatch