Computer at work only has IE installed, don't have other browsers - and not worth fighting helpdesk to get them installed.
When I replied to this, got same error, but using the debugging tools in IE, was able to step past the offending statement:
R.get(0).style.setExpression("height","document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'")
Not a great solution, but at least can reply.