Fixed IE8 problems (Closes #34)