Adding prerender flag to window