consolidate js