known bugs:
1. can't get online just after page load (need to start long polling
request outside of $(".chatbox").each(....)
2. can't open chat box automatically.
3. repeatedly call "success" function after each Ajax request under
Chrome.