Update gradient.class.js

JSDOC and Variable names