Consolidate js