Fixed some bugs with the script tag.