Fixed nav-bar collapsing when option selected

Also removed calls to JQuery in favour of angular.element()