Corrected js exception handling errors.

Modified: src/JSNative.c