Tidied up pagination HTML logic
Forgot all build files