javascript get json value by dynamic key