 
   updateCurrentStudent: (event) ->
     @currentAssignment = @collection.find (assignment) ->
-      assignment.get('student_name') is event.target.text
+      assignment.get('student_name') is event.target.innerHTML
 
     cookie.set 'current_assignment', @currentAssignment.get('token')
 

    @header.html markup

  renderMarker: ->
    center = @currentAssignment.get 'latLng'
    @marker = new google.maps.Marker
      position: center
      map: @map
      title: @currentAssignment.get 'student_name'

  toggleStudentList: ->
    @$('.student-names').toggleClass 'closed'

    </div>
    <ul class="student-names closed">
      <% collection.each(function(assignment) { %>
        <li class="student-name"><%= assignment.get("student_name") %></li>
      <% }) %>
    </ul>
  </div>
