max.html: find maximum number until it sees 0