js: property "key" instead of "name"