Remove ful page rendering and restrict rendering into head

As per #515.