added ajax code to YouTubeApi. Expanded functionality of YouTubeApi class.