clonned three.js and some factoring on lesson 2