missing script tag bug fix --KW