keeping track of second largest num
html and js buttons