Updated the endless pagination js file