Update gear.factory (js)