my @js_code = html_to_js_var({ "html" => $html, "in_quotes" => "single" # Could be "double" });