Added js for GeneratingPoint and DrawingGradient