Update input.js

Redid the logic for disabling the buttons, again, since it would display incorrectly when there were only 2 pages total.
Also added some logic to hide the paging controls when you only have 0 or 1 pages, since you can't page anyway.