Simplified the postPerPage code.

Turns out there really is no need for javascript housekeeping with postsPerPage.