Prevent i from being a global variable.
Prevent non-integer widths, in the case that a devicePixelRatio doesn't result in an even width
Optimizing stat function. Preventing global variable leaks, removing unnecessary variable assignment.
Cleaning up stat and pageview functions
The buttons variable doesn't need to be scoped so shallowly.
Save a few lines by defining isMobile at commit time.
Take advantage of chaining.
That if block will never execute. Removed.
Remove duplicated code, and stop applying some CSS to every span on the page (???)