Shopify: Display results of Liquid Metafields call in Javascript

I’m trying to add a call to a metafield I created for a product inside of a .js file so I can display some custom data. Instead of seeing that data, I’m just setting the overall code. This is the code I’m currently adding:

{%- if product.metafields.my_fields.subscription_descriptions != blank -%}
  <p>{{ product.metafields.my_fields.subscription_descriptions }}</p>
{%- endif -%}

It’s all part of what looks like standard HTML, so I’m just looking for the solution on how to add it so my metafield displays correctly.