Hilbert curve in 3D based on simple 3D engine in JavaScript