AngularJS-Perf: Applied trim patch