File pagination: preventing <a> tag behavior to make ajax call