You can hide the scrollbar with this…
document.body.style.overflow = 'hidden';
…and unhide it with this:
document.body.style.overflow = 'visible';
However, you have to question yourself whether this is really what you want. Scrollbars appear for people to be able to view things that are outside of their small screens.