 #	Github: https://github.com/jsdev/mobile508datepicker
 #	MIT License: as is, feel free to fork =)
 #	Tested on: IOS, Android, Surface, Modern Browsers, IE10+, IE9
-# 
+#
 (($) ->
   "use strict"
   $.fn.extend


      updateHeading = ->
        calcDate = setDate()
        
        #$setBtn.prev('span').find('span').text('Set as: ' + [dateChosen.month+1, dateChosen.day, dateChosen.year].join('/'));
        heading.innerHTML = (if calcDate.toDateString() is currentDate.toDateString() then "Today" else WEEKDAYS[calcDate.getDay()])


      ).on "keydown", (e) ->
        close()  if e.which is 27


      #Iterate over the current set of matched elements
      @each ->
        $this = $(this)
        $dp = $("#date-picker")

        #THIS WILL BUILD IT ONCE, vs. only once foreach in collection
        $dp.length or buildEl()
        $this.on("click", (e) ->
