+ fixes for "topbar.js"

- removed unused variable
- fixed little code-style