How to use babel in browser

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

<script src=""></script>
<script src=""></script>

then, after this, you can write javascript:

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

or, you can import another javascript file:

<script src="../js/main.js" type="text/babel"></script>
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.