Fixed date constructor issue for FF & IE

https://github.com/najlepsiwebdesigner/foundation-datepicker/issues/20