updating the js for part adding