Javascript Error Capturing Plugin
This plugin capture errors and send it by email (using a php script)
Download