For the first part, add a "Search Web" action before the javascript action, and make the "Search For" parameter blank.