Fixes #178 - IE8 tested. Need to check IE7.