simple script to create an indexed html file from a directory