Removed moment.js and replaced with standard date objects