I'm not a javascript expert by any means, but might we quote the keys here? It's unclear to me whether they are symbols elsewhere defined or just plain 'ol strings.