Update app.js

I think this is a solution for the negative range and no content range numbers if pageCount()<rangeSize!