UTF-8 to ShiftJIS conversion in JavaScript

Does anybody happen to know of any existing JavaScript code to convert text from UTF-8 to ShiftJIS (a standard Japanese encoding)?

Thanks,

doug