Not that it matters a whole lot, since we're just doing calculations (not repaining), but remember that the `scroll` event fires _many_ times during the course of a scroll. To cut down on CPU, you might consider doing a setTimeout/clearTimeout in the event handler such that it will only run `calculateDepth` after an acceptable amount of time of inactive scrolling.