dateFactory.js is functional.