fix #676 bump dependencies

Build was failing due to jshint / contrib-jshint incompatibility.
fix #675 Dialog disappears after resize

When the viewport was resized significantly, so that dialogOldPosition.left
> newViewport.width, the Dialog disappeared and never appeared again.

The problem was introduced in e6405a1b79c707f2b4090875ea2e2673f29d5c71 by
the check if reference position is in viewport before displaying the popup.

However it seems that this check is redundant and only introduces
problems. What this commit does is just removing that `if` (the rest is
formatting).
Revert "fix #639 too small viewport size reported in IE8"

This reverts commit cd6a2551fcee151fccfdb4a5b4450b233447fcb2
which landed in 1.4.8 and 1.3.7F.

That commits caused some problems with unnecessary scrollbars in IE8.
Instead, a commit from #675 was incorporated to address the issue.