issue #1108: add two method cleanScript and restart

issue #1108: add two method cleanScript and restart
This is not a good solution, restart the current game, not refresh the page