Auto-focus first form field when adding a choice

* Tiny size optimization by passing in 'document' object to the script's
  anonymous function