Change export route from GET to POST
Remove semicolon, so ajax and the preventDefault() both work