Converting JS time logic to use moment.js
Squashing general PR errors, making some improvements, matching backend functionality