three.js added for debugging purposes
jQuery dependencies removed, replaced by JS functions