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