Code clean, new "makeScript" method to make script