Dynamically assign classes to the main tab anchor tags