Update index.js to allow easier manual tweaking and insight