Porting Frontend to AngularJS