Re-working of Ajax/comet/JS chapter.