fix moment.js and datepicker issues