Added JavaScript error handling demo