fixed frontend search bugs

improved search debug comments.

now runs search when a username is autocompleted.

use html's autofocus instead of flaky jquery