3rd task for javascript

3rd task for javascript (gray block changing red fix for tabs)