gameover/replay support
control js updates.