Replaced formatDate function with AngularJS' date filter
http://docs.angularjs.org/api/ng/filter/date