Fix extras running in phantomjs page.