Update factory.coffee