Javascript How To Check If Dictionary Has Key