Fix progress bar on separate data table pages

Assign to global. Should say `var o = ...`

And single letter variable names are discouraged.