Use html5 'autofocus' attribute instead.