Implementing the YouTube API with AngularJS