Added deploy script to the .gitignore file
Small refactoring to make the pagination code a little nicer to the eyes