First pass at view3d.js.