Add code to call getPickups function in javascript