Moved scripts back into head to avoid FOUC