Raytracer with node.js