Add jquery-ui

I also moved most of the JavaScript into included files.