Change code so it runs in browser, comment out ES6 module syntax.