initial three.js code