Removes useless scripts