HDR loader in node.js