Update gradient.class.js

Add support for gradient import