Fixes for compatibility with new YUI and Socket.IO