optimizing js active tab selector, disabling box-shadow of progress bar