Update gradient.class.js

Fixed some errore introduced with commit.