Properly use jQuery "on"

Because the subitem indicator is replaced when switching tabs, event
delegation is required for on:
http://api.jquery.com/on/#direct-and-delegated-events