Web UI: Set focus on search box using JavaScript

New browsers should use the autofocus attribute, but seems to not work
always.