Example Source: Learning WebGL
Here are some lines of code.
Same code again in other style.
var renderer = new THREE.WebGLRenderer(); renderer.setSize( 800, 400 ); document.body.appendChild( renderer.domElement );