updating js for split