HTML uncaughtException handling