Show cart's total page count. While we're at it, completely overhaul cart.js.

ES5 - embrace it!