+ fixes for "tab.js"

- fixed code-style
- removed unused variable
- removed jslint-comment