export cv button on reports

This is not needed, there is already a global gotourl() function in general.js, you can simply use it.