Update customer.js

How can I create one getCustomer() function and call on as many places.