cleaned up prerender.js