Moved head script into iframe on the test page