Use a GET request in the client JS