Update factory-client.js