bug fix for the type in the script tag