IAIndex.js: We can immediately use the topic ID instead.
IAIndex.js: Simplify event handling.