     #     [unquote(assigns_js), unquote(buffer), unquote(to_safe(expr, line))]
     #   end
     # else 
-      quote do
+      {quote do
         [unquote(buffer) | unquote(to_safe(expr, line))]
-      end
+      end, "{{{{@script}}}}"}
     # end
     
   end

    # do not repeat assign javascript
    assigns_js = deduplicated_js_lines(buffer, found_assigns) |> script_tag()

    if found_assigns? do
      quote do
        [unquote(buffer), 
        unquote(span_begin),

        inject_span(buffer, expr, line)
      end
    end
    put_shadow_buffer(shadow)
    {:safe, injected}
  end

  defp in_script?(html) do
