improving SCRIPTED_BROWSER handling