Create daycounter.js