Changed variale name for url to URL, changed getUserMedia fail callback to use error.message or error.name