Fixed jqueryUi-amd exception issue when used as an external lib