Access the webcam with an Angularjs directive