Moved date-picker to a separate angularjs directive for reuse