This does not work as ``Sonata.Product.getUriFromTree`` does not return a closure ... the correct syntax is 
```js

$(document).ready(function() { 
var productTree = {{ sonata_product_jstree(provider, parent_product)|raw }};
var selectsList = $("form[name='variations'] select");
Sonata.Product.getUriFromTree(productTree, selectsList)

```