error.code is not defined, should be error.name

See http://dev.w3.org/2011/webrtc/editor/getusermedia.html#idl-def-MediaStreamError

The error generated by chrome has .name set already -- firefox still passes a string instead of a MediaStreamError, but that doesnt seem to hurt much.