Prevent file overwrite
If the file exists 1.html
Call setfilename filename is 1.html.1
If the file exists 1.html.1
Call setfilename filename is 1.html.2
...