pgn converter in js