Timer Utils for JavaScript