Refactored and simplified the Report Card JavaScript a bit