Javascript use canvas for grayscale

grayscale.htm