added YouTube example; changed res argument in on() to reference same PM instead of creating a new instance