Preinitialize Date object for moment.js. Fix #240.