refined insert and remove js selectors