Added cross-browser support for getUserMedia