Even though this is a super simple script that serves a super simple purpose, I wanted to have some fun, making it more complicated than necessary. ;)
The script uses the javascript module pattern.
It gets initialized by passing a string representation of the date, following the mm/dd/yyyy format.