title: SVG and HTML with external Javascript file
body: <p>I have an HTML file named index.html, in which I have included a svg (using the object-tag) and a js-file (using the script-tag). The js functions all work perfectly when called inside the HTML file.
  Now, when I want to access one of my js functions inside the svg-file, I have to link to the js-file in my svg file (using xlink). The functions still work inside the svg file, but as soon as these functions refer to any element in the HTML file (e.g document.getElementById('div1')), they don't work anymore (My guess: Probably because the function doesnt look for the element inside the HTML, but inside the SVG-file.)
  What can I do to make these functions work again?</p>