Update HTML and JS output to make it applicable to backgammon