Browser tests.
A few more tweaks ...

Fixed logic error and/or bug with old IE.