cleanup + new external script element