Simple JavaScript based time-delta calculator.