fix the bugs in extracting methods to parse properties of JSObject