Rewrite site using AngularJS