Refactor out threejs example.