Make Debug.Fail work on non-IE browsers (#347)