Added in arrow keys to change pages back it.
Addinging in credit for javascript function to navigate pages.