Fix for IE10 writing to read-only property

Proposed fix to attempt to write to read-only property in IE10 when using jQuery plugin