Adding jquery-ui elements into ready function.