Some dom-style handling for three.js