Added a utility class of three.js (and minor modifications).