grab URL for script from payload if it exists