I don’t know. Perhaps someone who is better versed at JXA can answer.
For more information, see the wiki Searching the Forum for Answers section.