Create pages based on JSON via AngularJS