modified grade.js but still incomplete, need to find a way to use restler correctly