Update lottery.html

Modified compareArray() methods