only load moment.js if needed