added type attribute to script tag