Fix undefined variable offsetDays.

Browser will throw "Uncaught ReferenceError" when using strict mode.
Merge pull request #7 from borgenk/patch-2

Fix undefined variable offsetDays.