Escaping javascript in url boxes

When rendering the array containing the urls and their permissions, we
escape the generated strings.
URI encoding the url in the url box

When a user copy pastes the URL in their terminal they might have
issues if the url has strange characters in it.
Merge pull request #99 from bberawk/javascript_escape

Escaped the URLs and generated javascript in the url boxes