Using the moment object more.

Cleaned out some vanilla JavaScript that I was using because Moment.js
has functions for that stuff. Getting cleaner and cleaner…