IE8 compatibility

@rjrodger  and here