working through converting to three.js
converted to three.js