Fixed bug in main.js

Now story works when game is restarted.