Update gradient.class.js

Start of gradien improvements