completed JS for Competitors page