Update javascript for pagination

Following on from Pull Request #64, this new pull request improves the comment in repaginate.js

The rest remains the same:

Update pagination javascript to fix bug, remove from inline and optimize:
* added as seperate file so that js is cached
* only run the code once per page even if there are multiple pagination areas
* fixed bug where only first include of pagination was functional