passed document link over from js to html