Update the factory after common js editor change