fix when currentPage is major than pageCount, fix inserting a NaN in inputs

It is not necessary due this `var currentPage = Math.max(~~$(event.target).val(), 1);`. If you insert `0`, I'll get 1 instead as a result of `Math.max(0, 1)`