Modify main.js to follow JSLint hints.
Fix external post from other groups without message bug.