Grep PHP Log error file and transform each line as a web to-do list based on AngularJS