Implemented jQuery to handle navbar