Remove script tag and XML header