jQuery and jqueryUI are both already registered for you in Elgg as AMD modules, and can be used.
It's also a bad practice to load jQuery in the head of your page.
check http://learn.elgg.org/en/stable/guides/javascript.html
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.