Simplifies the index.js script of the web version.