Create Gradient using Javascript
Code for generated gradient is -