IE8 compatability hacks
Merge pull request #276 from rcchan/ie-compat

IE8 compatability hacks