The interesting thing about this error is "SetReturnValue", which, based on the error, would seem to be a Tournament Director variable or object, but it is not. "SetReturnValue" cannot be found anywhere in the TD code.
Googling this turns up some references to Flash and the HTML 5 <video> element, as well as some 3rd party JavaScript libraries. Any chance you're using those things in your layout?