adding client/server js