Properly use global this to export moment

This is one issue encountered in strict mode.

Related to #1179
Merge pull request #1265 from ichernev/feature/moment-strict-mode-compat

Properly use global this to export moment