Replace link with CSV content AFTER creating element

replacing the csvContent before constructing element may not work for a large grid
as large csvContent -> large href -> angular.element (i.e. jQuery.parseHTML) may omit part of the href content