working with datejs and ajax modals