Calculate scrollbar size on demand

Using this library with requirejs throws an error on calculating the scrollbar size. Here is a workaround to solve the issue.