Creating a script to generate unique pages for each url