I am trying to highlight events in a datepicker, but I cannot get it working. The events are in the calender (when I click on them all functionality is correct) just not highlighted. Here is how I attempt to highlight them:

```
        beforeShowDay: function (date) {
            var result = [true, '', null];
            var matching = $.grep(events, function (event) {
            return event.Date.valueOf() === date.valueOf();
        });

        if (matching.length) {
            //Adds highlight to day
            result = [true, 'highlight', null];
        }
        return result;
    },

```

Any suggestions?