Make fieldname matching transformation in JS the same as in ruby. Also add matching for association fields.