Time recording javascript app