three.js r57 + r58 compat

I *think* this is the only thing needed to avoid deprecation warnings in the newer three.js