Reorganizing non-web scripts