Correct minor main.js mistakes