added request in both client and server js