js: highlight tags directly related to the one selected