Array Prototype Reduce Javascript Array Contains Key