Adjust field names in JS; fix typod field