No need to specify type="text/javascript" for script tag

See <script> documentation https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script