refactored make3d.js, divided into separate modules