three.js: cleanup, fix firefox crash