FLUID-4907: renamed generateGrades function

Renamed the generateGrades function to constructGrades in builder.js. This should help avoid confusion with the generateGrade function. Unit tests updated.