I am trying to use jquery UI for slider in a bookmarklet. and jquery ui requires to include the file after normal jquery file.So what I've tried so far was just appending the script to header while making sure that ui get added after normal jquery but this did not work i suspect it might be because i appended it and not pre pended it.So i am now looking for ways to pre pend in Javascript after some time searching i've found :\[code\]var parent_head = document.getElementsByTagName("head")[0];document.getElementsByTagName("head")[0].appendChild(jqueryUI, parent_head.firstChild);\[/code\]This however seems to append it in a normal way.Is there a better way?