Refactoring: Use direct ByteBuffer from Java, add JSValueArrayRef to hold JSValueRef array