More code changes to WebDAV

Finally, fixed the javascript on it.
Fixing copy/paster errors (I know, I know)