Moved time differencing to the HTML in order to get the history view working.