Updated script to be run in .ready() function

It isn't an issue here because you included your script after your body, however in the example on http://socket.io/get-started/chat/ they have you put the scripts before your body. Because of this, the application fails because the script loads before the dom is ready. 
I'm not sure if you maintain that page on socket.io or not, but I thought I'd make the commit and let you know anyway.

Thanks,
Joel Barna