add date parsing and moment.js