Main class allocates three.js resources