I am using the following code from a class to initialize the renderer:
// setup renderer this.renderer = new THREE.WebGLRenderer( { antialias: true });