[js] support radix in .toString() operations (integers only)