removes THREE.material creation from JSON > Cube object creation loop
  * we create and apply those materials to the materialIndex during
    the mergeGeometry loop anyway
  * refactored for loops to use cached length