Symptoms:
The custom JavaScript snippet added to functions.php did not work as expected.
Questions:
Why is the custom JavaScript snippet not working when added to functions.php?
Is there a specific way to add custom JavaScript for different languages in WPML?