[JS] convertHex()