Fixes #8. Min and max date. Needed to update to angular 1.3 to make this work properly