Round numbers to a step. Accepts an interval and optional offset.
JavaScript time slider for desktop and mobile