jquery object issue with ie9 and opera
If you log what todaydoy is
var todaydoy = today.getDayOfYear();
You will see it is returning the wrong value in IE, the following is copied from the watch window in IE9's console.
todaydoy 694324 Number
You need to figure out if their is bugs in the Date library you are using.