javascript game with flask backend