Update customer.js

try..catch in case of updateTable crashes