Implemented templates in AngularJS