Update gradient.class.js

Alpha on rgb does matter, must be not excluded
Fixed some typo, error, and added TAB in front of colorstops.