JavaScript implementation for a Voxel engine