Fix Lint

Enabling bitwise linting caught another user. Also fixed a semicolon
misuse.
Use getActiveElement module

We had something that did the same sort of protection. The module
differs slightly (returns document.body instead of undefined) but
looking at the callers, that should be ok.