Rewrite of the frontend using AngularJS