How to use babel in browser

at the end of html file, before the end of body tag, put these:

<script src="https://cdnjs.cloudflare.com/ajax/libs/cuid/1.3.8/browser-cuid.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore.js"></script>

then, after this, you can write javascript:

<script type="text/babel">
console.log('I can write es6 here');
</script>

or, you can import another javascript file:

<script src="../js/main.js" type="text/babel"></script>