Use className instead of setAttribute. Add class to body instead of envInterface. Change className from 'webcam' to 'env--webcam'. Only add class once user has allowed webcam access.