Revert "changing position of index.js"

This reverts commit ad253eac7f20c2973e4e916cb2cd6761c3d2bb99.