Javascript Helper Method: minMax for Numbers