Rewrite clean scripts to node