Getting jsjac to work with openfire

I am trying to get the jsjac example client to work with an openfire install I have running on my mac.

I get an initial response broken (status: 302) error when I try it, as well as an uncaught exception

Any suggestions would be great,

Cheers

I have since gotten it to a error 400, for which I saw a fix for earlier on the forums. Lets see how it goes.