JSEX uses records now, not dicts. Fix code and tests to handle