remove self-execution from index.js