How could I call this js function using WV2?

Dim c As cStringBuilder
Set c = New cStringBuilder

c.Append "function GetScrollPosX()"
c.Append "{"
c.Append " return (Math.max(document.body.scrollLeft,document.documentElement.scrollLeft));"
c.Append "}"