Added findItem callback to allow implementing scripts to provide a finding function for submenu items.