fix export button on reports using javaScript