Adding beforeShowDay function. Very similar to jquery datepicker beforeShowDay option at http://api.jqueryui.com/datepicker/#option-beforeShowDay