javascript and three.js have some lovely quirks...