issue #3: script tag processing (fix for usual cases)