Fix Sockets issue introduced during fixing JSHint issues