Datepicker not working in combination with RequireJS in IE9 (but, IE8 works)

Datepicker not working in combination with RequireJS in IE9 (but, IE8 works)

Hi guys,

I have a setup with jQuery 1.10.2 and UI 1.10.3 and I try to graciously fallback from the html5 datepicker in IE8 and IE9. Below snippet works in IE8 but in IE9, it doesn't.

It does print on the console, and when I execute the datepicker() line in the IE9 console it also works (the datepicker becomes visible on click on field).

I expect the problem to be in RequireJS and somewhere in this snippet:  http://jsbin.com/opulone/1/edit?js