Removes unnecessary scripts