added webcam javascript to view