Fixing HEAD in index.js