Fix for lack of Error.stack in IE