Fixed threejs and x3dom renderers code