Before JS insertion for mass update