For the first part, add a "Search Web" action before the javascript action, and make the "Search For" parameter blank.
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.