update 3d.js file