added ie8 compatible version.
never doing this again, ever...