move jQuery ui scripts to the head of the page