This code allows youtube videos to be played automatically like in Facebook