three.js r57 + r58 compat

I *think* this is the only thing needed to avoid deprecation warnings in the newer three.js
Merge pull request #5 from maxogden/patch-1

three.js r57 + r58 compat