[fix bug 937947] track hover interactions on firefox/central

Also cleaned up a bunch of indentation and linting errors in the JS