Unbreak dynatree.

I don't know why travis build isn't broken right now and I can't run tests locally (#1900) but this fix is needed to make it compile with current jqueryui.