Fix datatable JavaScript regression and make sure currently selected limit in the limit dropdown is used when exporting data.