reorganized script tags by dependency