Update gradient.class.js

why it didn't tell me all togheter is a mistery.
Code style fix part 2.