more flexible script call to socket io in index.html and set io to socket object