Loading socket.io without jQuery. Added authorization when calling controllers