full3d.html and main.js adapted for running on an external site