Dokchess-Implementierung in JavaScript