Cleanup ScriptTask::load and parse_html.