Bugfix: closing </script> tag would not appear sometimes.

Fixing bug: the closing JS script tag would not appear unless you opted to track Search.