use html5 autofocus instead of jQuery.focus, closes #292, refs #294