Array Prototype Reduce Javascript Array Contains Object