Javascript Update Dictionary With List