Stack Overflow at line 225 when using IE8