fixes the JavaScript code related to scroll in the news page