JavaScript datepicker, created with jQuery and moment.js