JavaScript Math object : min() method