Legacy js cleanup - change cj to $ within closures