Remove unnecessary currentTab property
Use 'this' reference instead of global variable