Well, I tested a lot of WooCommerce versions (3.3.x, 3.4.x and 3.5.x) using WP Rollback and I believe that was a error in e-mail templates that was fixed in version 3.5.2. I didn't found nothing in the changelog about that: https://raw.githubusercontent.com/woocommerce/woocommerce/master/CHANGELOG.txt
Here is the template in WooCommerce in version 3.5.2:
This is mostly working fine. You probably want quotes around your id in the window.superformIds array to ensure it's a string.
This is a bad way of going about this. With scripts and styles you want to avoid outputting them directly on the page wherever the shortcode is placed.
Here's a better method:
add_action( 'wp_enqueue_scripts', 'my_enqueue_scripts'...