Updated pngquant.js

code completely restructured, much less code, but a new bug has arrived