I Have lifted this program from this site: https://www.mobilefish.com/developer/webgl/webgl.html which in turn lifted the programs from a coursera course on WebGL. The 3D Sierpinski Gasket will in future be modified to rotate with interaction using mouse.
PS: Browse individual posts. Looking at all posts in one page might break the code behind. Here I posted in gamedev.stackoverflow.com a question about the same issue and it got solved instantly.