CC-5450 : Refactor Media Management (Classes/DB) in Airtime

fixing up the JS button class, can select things properly per tab.