title: Anyway of using Shopify metafield in js.liquid file?
body: <p>I want to change the way my product quantity selector works.</p>
  
  <p>At the moment it increments by 1, which is standard. However, all of my products come in different quantities.</p>
  
  <p>So I setup metafields for them with an int value.</p>
  
  <p>So in a normal liquid file I can do <code>{{ product.metafields.qty_incr.qty-incr }}</code> and it displays the value. In this example, 5.</p>
  
  <p>How can I get this to work in my .js.liquid file?</p>
  
  <pre><code>// Add or subtract from the current quantity
    if ($el.hasClass('ajaxcart__qty--plus')) {
      qty += {{ product.metafields.qty_incr.qty-incr }};
    } else {
      qty -= {{ product.metafields.qty_incr.qty-incr }};
      if (qty &lt;= 0) qty = 0;
    }
  </code></pre>
  
  <p>I did the above, which is not working. Probably a rookie thing here where I can't use liquid in a .js.liquid file.</p>