cleanup suggestion code
fix keybindings on firefox
improve suggestion scoring

 - prefix matches always beat substring matches
 - then, sort by smallest first
 - then just use regular (alphabetic) compare
don't modify input values unnecessarily