add date.js library and date parsing fn