Fix topbar breakpoint calculation for browsers with rendered scrollbars

On browsers with rendered scrollbars $(window).width() was not picking up the fact that scrollbars were present resulting in an unclickable expand menu link if the window size was within 10-15px (scrollbar width) more of the settings.breakPoint value. Using the $(document).width() instead returns the correct value as this does not include the scrollbar width.