Update logger.js

socket.io compatibility (for popbox)