newly js function to get videos from youtube and result page