Fixed problems in IE8 that were introduced by following jslint recommend...

...ations.