The JS variable is declared as private on line 96.
Make it public or make a public method to retrieve it.
Now it is public.
But you can add it to a bundle even now by using :
i.e. the bundling works with ResourceReference#equals(), not with identity equality.