modify tabs transition (js)