Although I appreciate the interest, arc2js is currently unusable. I haven't taken the time to port it to either Arc 3.1 or Arubic, so as far as I know you can't actually use it. It's on my TODO list to fix it, but that's not very comforting!
It would, however, be possible to revert to an older working version of arc2js... but that would only work on ar, so I don't really recommend that right now.