Windows Path Fixed

Windows got Problems with the leading /C:/ path segment.
Another fixed failure condition would be no leading / in the currentFile variable.
(when a domain may be specified...)
Then the file would not get put into temp but would create another folder.
e.g. /temp/xyz/ would produce /tempxyz/
Update main.js

Added comments.
Merge pull request #3 from fru/master

Windows Fix - Paths could not be created