added type attribute to the script tag