[PATCH 2/8] jscript: Move the clear_script_queue up to SCRIPTSTATE_INITIALIZED.