Fix for "TypeError: Assisgnement to read-only properties is not allowed in strict mode" in IE11