I'm not sure if this is intended, but the previous day is highlighted instead of the current day until about 9:30AM (i.e., at 8:45AM of October 16, October 15 is highlighted).
The problem seems to be in the "weeks" and the "default" cases in the switch statement of markNow:
var cd = Date.parse(new Date());
// new Date(cd) is Thu Oct 16 2014 09:20:20 GMT+0100 (WEST) which is the current day
cd = (Math.floor(cd / 36400000) * 36400000);
// new Date(cd) is Wed Oct 15 2014 23:26:40 GMT+0100 (WEST) which is the previous day
I'm also a bit confused about the significance of 36400000 (which seems to be 10h06m40s?).