This is just an example to build upon and in no way represents best practice. You most like would use a web component framework like React.js or Vue.js with Mura.js rather than vanilla js.
For this to work:
-
You must be on Mura 7.1.137 or greater
-
set your site's contentRenderer.cfc's this.hashURLs=true;