switch script type to text/javascript