4172d8b make Chess::JS a class instead of a module