Replace document.ready with .ready to ensure longPoll works
Replace document.ready with .ready to ensure longPoll works