Correct for <= IE8 support

Update browserPrefix code to work in older versions of IE.