A javascript chess engine