Update script type to text/javascript