refactored ajax requests and access to youtube; export function added;