Load jQuery and jQuery-ui in array instead of calling it directly