Fixed bug in main.js

One minor fix. Now story achievements works correctly.