Minor changes in js calls