Minor fixes to JS for changed paths in JSON objects