add  type="text/javascript", it is HTML4/XHTML1 requires