Update pagination class

Updated to work out of the box with Foundation 5 pagination