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