EXCEPTION_DEBUG additions
refactor exceptions info into JS objects