Throw .net exception to JS

To address issue #5.
Merge pull request #7 from EugenDueck/patch-2

Throw .net exception to JS