move youtube code into separate file

cleans up code