fixed cross-browser new file creation