Small mods to index.js .