Add Javascript(webcam live feed) to a single page


How do I add javascript to a single page? I googled the issue but it seems that you have to be a Javascript expert do that. Surely it has to be more simple approach?

I tried to copy/paste the code from into a wordpress page (text view)to get a live feed from a webcam but it just loads a blank page.

Update: It works if I paste the script directly in Widget(text) but for some reason it just shows a blank page if I paste the script on a single page.