Software 3D-polygon rasterizer for Javascript