[firefox] Move UI code out of boostrap.js

Also, make the hotkey focus or toggle instead of just toggle.