[Hustle Pro] Hustle Pro popup activation depending on ACF field value

We are trying to activate / deactivate a Hustle popup depending if an ACF field is true or false.
This is what we did so far:
1) In header.php we defined a variable to store the acf field value (1 or 0)

        var testVar = "<?=get_field('activate_popup','option'); ?>";

2) Then with jQuery we evaluate that variable value to display or hide the popup:

<script type="text/javascript">
jQuery(document).ready(function( $ ) {
if (testVar==1) {

However, it seems no to be the best approach and it doesn’t work. On the other hand, we don’t find Hustle documentation with hooks or other way for us to implement the system.

Can you please assist in this issue? Which Hustle variable can we use to publish / unpublish or show / hide a specific popup, depending on the ACF field value.

Thank you very much