Prefer the HTML5 autofocus attribute over a JS focus().

This will avoid bringing up popup keyboards on mobile devices.