As WebGL can be difficult to work with as is there are various JavaScript libraries that hide the tricky bits and provide a nicer API to work with. Examples: three.js, PhiloGL, csg.js.