Improve asset loading code, remove jquery, update threejs