Added moment.js and refactored time parsing