         date = date.add('days', 1)
         dow = date.day()
         day = moment.weekdays[dow]
-        while Holiday.isHoliday(date) or @hours[day].length != 2 
+        while Holiday.isHoliday(date) or @hours[day].length != 2
           date = date.add('days', 1)
           dow = date.day()
           day = moment.weekdays[dow]
         "It will open at #{mt @hours[day][0]} on #{day}."
-   
+
 Library.current = ->
   $(document).data('library')
 

    day = date.format("dddd")
    time = date.format("HHmm")
    not(Holiday.isHoliday(date)) and
      @hours[day]? and 
      @hours[day].length == 2 and 
      @hours[day][0] <= time <= @hours[day][1]

  openMessage: (date) ->

    newLibrary = Library.all[library]
    $("#library-chooser .btn-text").text "the #{newLibrary.name}"
    @displayOpenInfo(library)
    $("#hours").html JST['templates/hours']
      name: newLibrary.name
      hours: newLibrary.hours
      mt: Library.formatMilTime
      mod: (a, b) -> a % b
    $("#contact").html JST['templates/contact']
      name: newLibrary.name
      address: newLibrary.address
      phone: newLibrary.phone
    $("#map").gMap
      address: newLibrary.fullAddress()
