add socket.js to public js