Merged three.js frontend with backend code.