fixedURL issues in Files

in the files app the url hadling system was fixed also some javascript
was added to files (does not fully work yet)