Fixed january breaking with previous patch due to date being shifted back 5 days

Fixes the situation where date.getMonth() turns into 11, thus breaking the patch.
Merge pull request #23 from SchizoDuckie/patch-1

Fixed january breaking with previous patch due to date being shifted back 5 days