Getting the XMLHttpRequests from THREEjs to work server-side