Fix inflate.js error handling, according to nahidakbar in issue #101
inflate|deflate.js: report error by throwing Error.
Merge pull request #109 from duanyao/Fix_native_codecs

Fix native codecs