[javascript] Get index of a key in json