If you can drop a web proxy in there to record the data going across the wire when that Javascript fires, you can just do it in Perl and not use IE at all. That may give you more flexibility (and the ability to throw "bad" data at the backend to make sure it can handle it. Never trust the browser!).