Error Handler for JavaScript Debugging