Remove full page rendering and restrict rendering into head

As per #515.