Texture Map Generator in pure JavaScript (node.js, multithreading)