Doctype crashes JQuery

Doctype crashes JQuery

Hi guys and nerdy girls,

I use latest JQuery UI. When my html file has no doctype set, it works fine in Chrome.
However, in Firefox nothing works telling me a Doctype is needed to execute Javascript.

When adding the HTML5 doctype to the html file, nothing works any longer in any browser. (I did not yet test IE).

Please see my file without doctype (use chrome, FF doesnt work):

The file with Doctype is:

What do I need to change to make this work in any browser?
(yes, the issue of not asynchronous animations I still have to fix ;) )

Thanks