early return
remove unused showIndex
remove dead code
prefix with js-, use classes
remove dead event listener
fix small things