change index to read build file from client

Originally socket.io.js was read in the client, but since we removed "fs" module from there, it needs to be read in the server.