add type="application/javascript" to <script> tags