I haven’t followed the entire thread here, so forgive me if I’m repeating someone else’s suggestion. I suspect that Wordpress is blocking execution of Javascript in articles, or perhaps filtering out the javascript during publishing. Is it possible you are loading the results into an online editor before you are publishing?
I think you’ve got a couple of options: You can publish the results as a separate, independent page and point to it as a link, or you can find a plugin for Wordpress that allows limited javascript execution in articles.
···
Andy Barrow
**email: **andy@sailor.nu
tel (mx): +52 322 104 2189
tel (us): +1 925 270 0473
Skype: abarrow