issue #3: script tag processing