Separate Three related functions to ThreeView.js