This is a brilliant idea. Take a look:
Logging Client Side JavaScript Errors to the Server – The Code Project – AJAX / Atlas
Name
Mail (will not be published)
Website