MDL-46658 gradereport: Update JS to meet coding style guidelines and fix various things