Angular datepicker directive based on moment.js