[javascript] How to find value using key in javascript dictionary