Yet another JS error reporting tweak