simplified checkForScrollbar, style fixes
removed semicolons