fixed compatibility with moment.js 1.7.2