Extending Three.js with a custom geometry object