Update Factory.js

logging the dates for debbuging