+ fixes for "tooltip.js"

- remove unused variables
- fixed little code-style