Starter three.js application with function constructor and prototypes