Code for legacy Komin masthead and autcomplete search