Create and use a directive to auto focus an element