various dithering algorithms written in JavaScript.