   # Reverse geocodes the center of the (currently displayed) map
   ###
   mqurl = "http://open.mapquestapi.com/nominatim/v1/reverse?format=json&lat=" + map.getCenter().lat + " &lon=" + map.getCenter().lng
-
   #close any notifications that are still hanging out on the page.
   msgClose()
-
   # this next bit fires the RGC request and parses the result in a
   # decent way, but it looks really ugly.
   $.getJSON mqurl, (data) ->


  # add keyboard hooks
  if enablekeyboardhooks
    $(document).bind "keydown", (e) ->
      key = String.fromCharCode(e)
      switch key.which
        when "q"
            nextUp "falsepositive"
        when "w"
            nextUp "skip"
        when "e"
          openIn('josm')
        when "r"
          openIn('potlatch')
        when "i"
          openIn('id')

  # Try to grab parameters from the url
  challenge = $(document).getUrlParam("challenge")

  if challenge?
    updateChallengeDetails(challenge)
    updateStats(challenge)
    getTaskByChallenge(challenge, near)
  else
    # We'll need to grab a task and then use the information from that
    # task to populate the page
