convert max-age(seconds) to js milliseconds