integrate chess.js and show pieces
expose a javascript API