Added amd support to pagination js instead of using a separate file.