setting up auto scroll

question: where to put jquery in the DOM or in the js file