"var $mapHelp = $('#map-help');" at the top of this function would save some typing and cpu cycles