Convert to camelcase to match jQuery and Underscore; Move max page checking into utils; Check last page for index controller