A lightweight abstraction for the JavaScript Timer API.