Fix for datepicker format and angular 1.3 support