download now works for name
refactored code into modelClass.js
fixed bug and merge conflicts
Merge branch 'Refactoring_V2'

Download button now works when viewing the report.
Also, Refactored the renderModel into a modelClass.