A javascript chess engine and UI