Addition of getUserMedia and head tracking code