Javascript class for providing a time since a given date