Array Unique Javascript Array Of Functions Is Not Allowed