third try to get the camera working

altered js according to example, and did onclick instead of jquery click
call