Fixed PNGReader.js to work without node.