fixed server.js for prerender