use jquery to apply approprite class to navbar