On javascript caught errors, ajax call to function that flags the script in the database and emails the site admin.