I have to deal with the weekends when writing code too. I've previously dealt with them by testing them and then adding to the date.
- var name = new Date();
- if (name.getDay()=='0'){action}
0, of course, being Sunday and "6" is Saturday. I test my date to see if the day is a 0 or 6 then add to the date appropriately. This may not solve your issue but it's food for thought.