made up a script handler

made a class to handle all the scripts