Old Version:mesh.rotateX(Math.PI / 2);  Maybe it's going to have to flip over: mesh.rotateX(-Math.PI / 2); 
Old Version:mesh.rotateX(Math.PI / 2);

Maybe it's going to have to flip over:
mesh.rotateX(-Math.PI / 2);