mitigate deprecation warnings

newer versions of moment.js print this warning to the console:
```
moment().add('h',3)
Deprecation warning: moment().add(period, number) is deprecated. Please use moment().add(number, period).

moment().subtract('d',3)
Deprecation warning: moment().subtract(period, number) is deprecated. Please use moment().subtract(number, period).
```