fixed up js and added a name to each report and file type, useful on the front end