Rework library script removal from edit window on frontend/php.