Always use AMD with moment.js and not access through global scope.

fixes #418