The problem here is that the function’s created twice. The JavascripttoBubble creates the function bubble_fn_a() but then so the script in the HTML element.
The HTML element should be deleted all together and the code should be moved in the Run javascript action like this:
var initiative = "Table/grid initiative's Clicked row data";
bubble_fn_a( initiative.split(",", 1) );
This will effectively call the JavascripttoBubble function, passing it the extracted name along and the element will call the workflow to set the URL parameter.