adding script type attribute