 
     render: (options) ->
       that = this
-      require [ "text!../templates/view.html.tpl" ], (template) ->
+      require ["text!../templates/view.html.tpl"], (template) ->
         that.$el.html _.template(template)
+        return
 
       person = new Person(id: options.id)
       person.fetch

          @$el.show()
        else
          @$el.show()
  
  class SearchFormView extends Backbone.View
    el: "#page"
    render: (options) ->
      that = @
      templated = _.template($("#breadcrumb-template").html(),
        breadcrumbs: [
          title: "Search"
          url: "/search"
         ]
      )
      $("#breadcrumb").html templated

      require [ "text!../templates/search.html.tpl" ], (template) ->
        that.$el.html _.template(template)

      countries = new Countries()
      console.log "fetch countries"
      #fetch the countries collection with an ajax call
      countries.fetch
        dataType: "jsonp"
        data: []
        success: (countries) ->
          console.log "countries: ", countries
        error: (response) ->
          console.log response
        reset: true

    events:
      "click div[id^=search-] label.btn": "visualDateUpdate"

          $("#" + set + "-end").val ""  if $("#" + set + "-end").val() is "9999"
        else
      console.log "data"
      return
  )
  PersonSingleView = Backbone.View.extend(
    el: "#page"
    fuzzyDateRenderer: (type, date1, date2) ->
      
