Javascript Dictionary Check If Key Exists