I'm glad, just remember to restrict the variables included in the JXA script (it is including "All" variables by default).
For more information, see the wiki Searching the Forum for Answers section.