Javascript Math Max Array Php