modify site.js make the socket once connection