Again, this was created from an assignment. I did it in GNU Octave. But, I want to try doing it in JavaScript.
There are three smoothing techniques: mean blur (box blur), Gaussian blur, and median filter.
For salt-and-paper noises, median filter works very well!