Clean code and correct syntax for NeuQuant.js and LZWEncoder.js.