Refactor global variable to a function and rename to scrollbar-size