makes Error toJSON property writable
Merge pull request #9 from conorgil/master

makes Error toJSON property writable