Edit names in js object.