Completed web page with functional Scrabble calculator using for loop and indexOf