Here's a lil' Scrollbar Experiment. It's pretty.
You clearly have too much time on your hands. Extremely cool.
Though in this case, speed is not really an issue and I should have just done Math.floor for readability. Sorry 'bout that!