This code works fine.
However, it slows down the page. I wanted to do something asynchronously so it wouldn't interfere with the page. The jbbURL returns code that writes to the document. I can't just call the function because it reloads the page with just the image. I was thinking I could store the results of the webpage and parse it. That gives an error. (but no message.) I guess this isn't allowed?
Am I doing something wrong? Any other ideas for what I am trying to accomplish?