Cleanup: remove duplicate variable definition.
Use moment.js for dates.