Implementation of Youtube API with AngularJS