app.js

added if condition to line 31, the negative page is still displaying if have page count equals to 1 or 2.