MDL-46658 gradereport: Update JS to meet coding style guidelines and fix various things
Start of work to move tooltip