If I understand your question correctly, simply have your LS agent print the JS to the browser and the browser will execute it. For example:
Dig Deeper on Domino Resources - Part 4
Related Q&A from Dave Hatter
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.