Added a function to customer.js. I'm kind of halfway done with it :-)