focus.js: avoid spurious exception and remove some unused code.
focus.js: avoid spurious exception and remove some unused code.

harbalk/delite,harbalk/delite,kitsonk/delite,kitsonk/delite,Sam-Cummins/delite,Sam-Cummins/delite