make moment.js compatible with older version of requirejs