Update pagination.js

check for item-per-page less than whatever was set