Moment.js deprecation warning

Currently we're having a deprecation warning when using Moment.js.

`Deprecation warning: Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.`