Fixed date constructor issue for FF & IE

https://github.com/najlepsiwebdesigner/foundation-datepicker/issues/20
Merge pull request #21 from build-failure/master

Fixed issue #20