Fix Ajax pagination on edge cases and remove minified version