function and mixin for making IE8 support behave nicely with REMS