Integrate entry index into entry component.
Refactor JS.