|  |  | 
 |  |  |    nav.className = nav.className.replace(' loading', ''); | 
 |  |  | } | 
 |  |  |  | 
 |  |  | function loadTimes(stopId = null, clearRoute = false) { | 
 |  |  | function loadTimes(stopId, clearRoute) { | 
 |  |  |    if(!stopId) stopId = stop_id; | 
 |  |  |    if(!stopId) return; | 
 |  |  |     | 
 |  |  | 
 |  |  |    }).fail(fail_ajax).always(loading_end); | 
 |  |  | } | 
 |  |  |  | 
 |  |  | function declinate(num, singular, plural) { | 
 |  |  |    if(num == 1) return num + ' ' + singular; | 
 |  |  |    return num + ' ' + plural; | 
 |  |  | } | 
 |  |  |  | 
 |  |  | function startTimer(date) { | 
 |  |  |    if(date) { | 
 |  |  |       setText(refresh_text, lang.last_refreshed.replace('$time', lang.time_now)); | 
 |  |  | 
 |  |  |     | 
 |  |  |    if(stop_id) return; | 
 |  |  |     | 
 |  |  |    setText(page_title, lang.page_title); | 
 |  |  | 	 | 
 |  |  |    if(stop_name_autocomplete.value) { | 
 |  |  |       setText(refresh_text, lang.select_stop_click_go); | 
 |  |  |    } else { |