Use HTML5 and webcam to detect ambient light.