replaced moment.sod() with .startOf('day')
removed moment.js on minify