fixed friendly url script

no more one-line html files!
friendly URLS and friendly html