Three.js test code