changed a lot of stuff, now using three.js