a small JavaScript shim that hides variations across getUserMedia implementaitons