docs v5: switch to ES6
Hugo v0.70.0 introduced the ability to use Babel, which means we can finally use ES6 everywhere in the codebase for v5.
There's still a bug that needs to be fixed, but should only affect Windows: https://github.com/gohugoio/hugo/issues/7251