fix(topbar): Refactored JQuery style code to Angular style