porting http://chessboardjs.com/