I'm not disagreeing with your general point, but this does seem a little overkill when you could achieve a similar effect with a few constants:
5 * MINUTE
3.5 * HOUR
etc. 5 * MINUTE
3.5 * HOUR
etc.(My point is: a library may be more appropriate in the JavaScript case, because of the lack of constants.)