Add utils for printing JS exception details.
Fix JS exception reporting.

- Provide greater details by printing stacktrace.
- Give correct filename and locations.
Merge pull request #17 from joshthecoder/timob-12510

TIMOB-12510: Provide better exception reporting.