mime type check in javascript code example Example: html script mime type <script type="text/javascript"></script>