js debugging alert for all errors