set max value for input number with javascript